package router

import (
	"github.com/gin-gonic/gin"
	jwt "github.com/go-admin-team/go-admin-core/sdk/pkg/jwtauth"
	"tuowei.com/app/api/apis"
	"tuowei.com/common/middleware"
)

func init() {
	routerCheckRole = append(routerCheckRole, registerSysBalanceRouter)
}

func registerSysBalanceRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware) {
	order := apis.SysBalanceDetail{}
	r := v1.Group("/balance/detail").Use(authMiddleware.MiddlewareFunc()).Use(middleware.CheckLogin)
	//获取余额明细列表
	r.POST("/get/list", order.GetPages)
	//新增余额明细记录
	r.POST("/add", order.AddBalanceDetail)

}
